public class Translation {
        private String[] dict = {"one","two","three","four","five","six","seven","eight","nine","ten"};

        public long translate (String arg) {
                int index = 0;

                for (index=0; index<dict.length; index++){

                        if (dict[index].equalsIgnoreCase(arg))
                                break;
                }

                switch (index) {
                        case 0:
                                return 1L;
                        case 1:
                                return 2L;
                        case 2:
                                return 3L;
                        case 3:
                                return 4L;
                        case 4:
                                return 5L;
                        case 5:
                                return 6L;
                        case 6:
                                return 7L;
                        case 7:
                                return 8L;
                        case 8:
                                return 9L;
                        case 9:
                                return 10L;
                }
                return 0;
        }

        public static void main (String args[]) {
                if (args.length > 0)
                        System.out.println(new Translation().translate(args[0]));
        }
}